package com.glacier.invoke;


/**
 * date 2022-01-13 10:47
 *
 * @author glacier
 * @version 1.0
 */
public class HandleTarget {
	private String name = "hello world";
	protected String no = "123";
	
	public HandleTarget() {
	}
	
	public HandleTarget(String name) {
		this.name = name;
	}
	
	public void connectName(String name) {
		this.name = this.name + " " + name;
	}
	
	public String getName() {
		return name;
	}
	
	public String getNo() {
		return no;
	}
	
	private void learnPrograming(String lang) {
		System.out.println(String.format("I am learning %s ", lang));
	}
	
	public static String declaration(String author) {
		return author + ": " + "吾生也有涯，而知也无涯。以有涯随无涯，殆己";
	}
	
	@Override
	public String toString() {
		return "HandleTarget{" +
				"name='" + name + '\'' +
				'}';
	}
}
